package framework.common.zanetwork;

/**
 * Created by het9330 on 2016/7/5.
 */
public class    AcountUeHttpUrl {

    // 远程环境
    public static String AcountSERVER_IP = "59.110.170.249";
    public static String AcountSERVER_PORT = "8080";
    // 本地环境
    public static String AcountLOCALSERVER_IP = "192.168.199.10";
    public static String AcountLOCALSERVER_PORT = "8080";

    // 生产环境
     public static String MODEL = "PRD";
    // 开发环境
	//public static String MODEL = "DEV";
    static {
        if (MODEL.equals("DEV")) {
            AcountSERVER_IP = AcountLOCALSERVER_IP;
            AcountSERVER_PORT = AcountLOCALSERVER_PORT;
        }
    }


    // 获取数据请求URL
    public static String BaseHttpUrl() {
        if (AcountSERVER_PORT == null || "".equals(AcountSERVER_PORT)) {
            return "http://" + AcountSERVER_IP + "/";
        } else {
            return "http://" + AcountSERVER_IP + ":" + AcountSERVER_PORT + "/";
        }
    }
    // 获取数据请求URL
    public static String AcountBaseHttpUrl() {
        if (AcountSERVER_PORT == null || "".equals(AcountSERVER_PORT)) {
            return "http://" + AcountSERVER_IP + "/";
        } else {
            return "http://" + AcountSERVER_IP + ":" + AcountSERVER_PORT + "/";
        }
    }
    public static String getImgaes(){
        return BaseHttpUrl()+"images/";
    }

    /**
     * 注册接口
     * @return
     */
    public static String regist(){
        return BaseHttpUrl()+"lr/user/registered";
    }
    /**
     * 注册接口
     * @return
     */
    public static String setShare(){
        return BaseHttpUrl()+"lr/user/setShare";
    }
    /**
     * 修改密码接口
     * @return
     */
    public static String updatePass(){
        return BaseHttpUrl()+"lr/user/putPassWord";
    }
    /**
     * 忘记密码接口
     * @return
     */
    public static String retrievePassword(){
        return BaseHttpUrl()+"lr/user/retrievePassword";
    }

    /**
     * 获取短信验证码
     * @return
     */
    public static String snedSms(){
        return BaseHttpUrl()+"lr/sms/getVerifyCode";
    }

    /**
     * 用户登录
     * @return
     */
    public static String login(){
        return BaseHttpUrl()+"lr/user/login";
    }
    /**
     * 提交推送
     * @return
     */
    public static String putPushId(){
        return BaseHttpUrl()+"lr/user/putPushId";
    }
    /**
     * 获取栏目新闻
     * @return
     */
    public static String columnListId (String cloumId){
        return BaseHttpUrl()+"lr/news/"+cloumId;
    }
    /**
     * 行业动态栏目
     * @return
     */
    public static String columnList (){
        return BaseHttpUrl()+"lr/news/columnList";
    }
    /**
     * 省市区获取接口
     * @return
     */
    public static String provincesAll (){
        return BaseHttpUrl()+"lr/provinces/all";
    }
    /**
     * 获取接口发布范围
     * @return
     */
    public static String pushFabu (){
        return BaseHttpUrl()+"lr/setting/list";
    }


    /**
     * 验证手机端密码是否正确
     * @return
     */
    public static String checkPass(){
        return BaseHttpUrl()+"lr/user/checkPass";
    }

    /**
     * 获取系统消息(默认每页记录数20)
     * @return
     */
    public static String sysNoticeList(){
        return BaseHttpUrl()+"lr/notice/sysNoticeList";
    }
    /**
     * 标记消息已读
     * @return
     */
    public static String sysNoticeRead(){
        return BaseHttpUrl()+"lr/notice/sysNoticeRead";
    }
}
